package com.dtk.api.controller.base;

import com.dtk.api.client.DtkApiClient;
import com.dtk.api.request.putstorage.DtkGoodsListRequest;
import com.dtk.api.response.base.DtkApiResponse;
import com.dtk.api.response.base.DtkPageResponse;
import com.dtk.api.response.putstorage.DtkGoodsListItemResponse;


/**
 * dtk api: base controller
 *
 * @author baige
 * @date 2020/11/13 14:21
 */
public class BaseController {

    public static void main(String[] args) {
        String appKey = "xxx";
        String appSecret = "xxx";
        DtkApiClient client = DtkApiClient.getInstance(appKey, appSecret);
        DtkGoodsListRequest request = new DtkGoodsListRequest();
        request.setVersion("v1.2.4");
        DtkApiResponse<DtkPageResponse<DtkGoodsListItemResponse>> execute = client.execute(request);
        System.out.println(execute);
    }
}
